﻿/*
 弹窗初始化脚本，挂在MsgBox(弹窗画布上)
 Title--弹窗标题
 Content--弹窗内容
 Sure--确定按钮
 Canel--取消按钮
 */

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using Common;

public class UINotice : MonoBehaviour
{
    public Text Title;
    public Text Content;  //这个是Content下的text
    public Button Close;
    public Button Sure;

    void Start()
    {
        Close.onClick.AddListener(NoticeBox.Close);
        Sure.onClick.AddListener(NoticeBox.Sure);
        Content.text = NoticeBox.ContentStr;
        Title.text = NoticeBox.TitleStr;
    }
}